package com.bdqn.membersystem.servicce.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bdqn.membersystem.mapper.UserBuyMapper;
import java.util.List;
import com.bdqn.membersystem.pojo.UserBuy;
import com.bdqn.membersystem.servicce.UserBuyService;
@Service
public class UserBuyServiceImpl implements UserBuyService{

    @Resource
    private UserBuyMapper userBuyMapper;

    @Override
    public int deleteByPrimaryKey(String buyId) {
        return userBuyMapper.deleteByPrimaryKey(buyId);
    }

    @Override
    public int insertSelective(UserBuy record) {
        return userBuyMapper.insertSelective(record);
    }

    @Override
    public UserBuy selectByPrimaryKey(String buyId) {
        return userBuyMapper.selectByPrimaryKey(buyId);
    }

    @Override
    public int updateByPrimaryKeySelective(UserBuy record) {
        return userBuyMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateBatch(List<UserBuy> list) {
        return userBuyMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<UserBuy> list) {
        return userBuyMapper.batchInsert(list);
    }

    @Override
    public int insertOrUpdate(UserBuy record) {
        return userBuyMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(UserBuy record) {
        return userBuyMapper.insertOrUpdateSelective(record);
    }

}
